package com.lhn.tankGame2;

import javax.swing.*;

/**
 * @author lhn
 * @date 2024-07-24 18:05
 */

public class TankGame02 extends JFrame {

    private MyPanel myPanel = null;

    public static void main(String[] args) {
        new TankGame02();
    }

    public TankGame02() {
        myPanel = new MyPanel();
        this.add(myPanel);
        this.setSize(1000, 750);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        this.setVisible(true);
        this.addKeyListener(myPanel);
    }
}
